import VueRouter from 'vue-router'
import cart from './components/tabbar/cart.vue'
import search from './components/tabbar/search.vue'
import home from './components/tabbar/home.vue'
import menber from './components/tabbar/menber.vue'

// 3. 创建路由对象
var router = new VueRouter({
	routes: [{
			path: '/',
			directive:home
		},{
			path: '/home',
			component: home
		},
		{
			path: '/cart',
			component: cart
		},
		{
			path: '/menber',
			component: menber
		},
		{
			path: '/search',
			component: search
		}

	],
	linkActiveClass: 'mui-active'
})

// 把路由对象暴露出去
export default router